package com.ssy.lingxi.member.merchant.controller.feign;

import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.member.merchant.api.model.vo.inner.request.MemberOrderCommentVO;
import com.ssy.lingxi.member.merchant.service.feign.IMemberOrderCommentFeignService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.validation.Valid;

/**
 * 会员订单评价feign接口
 * @author yzc
 * @version 2.0.0
 * @date 2021/8/3
 */
@RestController
@RequestMapping("/member/feign/orderComment")
public class MemberOrderCommentFeignController {

    @Resource
    private IMemberOrderCommentFeignService memberOrderCommentFeignService;

    /**
     * 保存订单数据
     * @param memberOrderCommentVO 接口参数
     * @return 返回结果
     */
    @RequestMapping(value = "/save", method = RequestMethod.POST)
    public Wrapper<Void> saveMemberOrderComment(@RequestBody @Valid MemberOrderCommentVO memberOrderCommentVO) {
        return memberOrderCommentFeignService.saveMemberOrderComment(memberOrderCommentVO);
    }
}
